package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;


import java.util.Date;

@Alias("interflow")
@Table(name = "interflow")
public class Interflow implements Serializable  {
	@Transient
	private String headimaurl;
	@Transient
	private String nickName;
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//交流表ID							
	@Column(name = "id")
	private Integer id;
	//课程ID							
	@Column(name = "syllabus_id")
	private Integer syllabusId;
	//用户ID							
	@Column(name = "user_id")
	private Integer userId;
	//用户类型(0 患者 1 医生)							
	@Column(name = "user_type")
	private Integer userType;
	//信息内容							
	@Column(name = "message")
	private String message;
	//创建时间							
	@Column(name = "create_time")
	private Date createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getSyllabusId() {
		return syllabusId;
	}

	public void setSyllabusId(Integer syllabusId) {
		this.syllabusId = syllabusId;
	}
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getHeadimaurl() {
		return headimaurl;
	}

	public void setHeadimaurl(String headimaurl) {
		this.headimaurl = headimaurl;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
}